package com.demo.builder.tradition;

public abstract class AbstractHouse {

    // 打地基
    public abstract void buildBase();

    // 砌墙
    public abstract void buildWalls();

    //封顶
    public abstract void roofed();

    public void build() {
        buildBase();
        buildWalls();
        roofed();
    }
}

